﻿#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <head/g_pch.h>

#define TD_UNIT "td_unit"

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

    void initialize();
    void loadItems();

private slots:
    void on_btn_convert_clicked();

    void on_category_currentTextChanged(const QString &arg1);

    void on_btn_exchange_clicked();

private:
    Ui::Dialog *ui;

    QString table;
    QStringList categories;
    QMap<QString,double> items;
};

#endif // DIALOG_H
